package com.xqzgj.system.domain;

import com.xqzgj.common.annotation.Excel;
import com.xqzgj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 库存盘点对象 stock_check
 */
public class StockCheck extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 盘点ID */
    private Long id;

    /** 盘点单号 */
    @Excel(name = "盘点单号")
    private String checkCode;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 盘点类型（1全盘 2抽盘） */
    @Excel(name = "盘点类型", readConverterExp = "1=全盘,2=抽盘")
    private String checkType;

    /** 盘点日期 */
    @Excel(name = "盘点日期")
    private String checkDate;

    /** 盘点状态（0进行中 1已完成 2已取消） */
    @Excel(name = "盘点状态", readConverterExp = "0=进行中,1=已完成,2=已取消")
    private String checkStatus;

    /** 盘点结果（0正常 1盘盈 2盘亏） */
    @Excel(name = "盘点结果", readConverterExp = "0=正常,1=盘盈,2=盘亏")
    private String checkResult;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long operatorId;

    /** 操作人姓名 */
    @Excel(name = "操作人姓名")
    private String operatorName;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long approverId;

    /** 审核人姓名 */
    @Excel(name = "审核人姓名")
    private String approverName;

    /** 审核时间 */
    @Excel(name = "审核时间")
    private String approvalTime;

    /** 审核状态（0待审核 1已审核 2已驳回） */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=已审核,2=已驳回")
    private String approvalStatus;

    /** 盘点备注 */
    private String checkRemark;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setCheckType(String checkType) {
        this.checkType = checkType;
    }

    public String getCheckType() {
        return checkType;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }

    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    public String getCheckResult() {
        return checkResult;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setApproverId(Long approverId) {
        this.approverId = approverId;
    }

    public Long getApproverId() {
        return approverId;
    }

    public void setApproverName(String approverName) {
        this.approverName = approverName;
    }

    public String getApproverName() {
        return approverName;
    }

    public void setApprovalTime(String approvalTime) {
        this.approvalTime = approvalTime;
    }

    public String getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalStatus(String approvalStatus) {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() {
        return approvalStatus;
    }

    public void setCheckRemark(String checkRemark) {
        this.checkRemark = checkRemark;
    }

    public String getCheckRemark() {
        return checkRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("checkCode", getCheckCode())
                .append("warehouseId", getWarehouseId())
                .append("warehouseName", getWarehouseName())
                .append("checkType", getCheckType())
                .append("checkDate", getCheckDate())
                .append("checkStatus", getCheckStatus())
                .append("checkResult", getCheckResult())
                .append("operatorId", getOperatorId())
                .append("operatorName", getOperatorName())
                .append("approverId", getApproverId())
                .append("approverName", getApproverName())
                .append("approvalTime", getApprovalTime())
                .append("approvalStatus", getApprovalStatus())
                .append("checkRemark", getCheckRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}